package pw.hais.main.main_app.app;

import com.avos.avoscloud.AVAnalytics;
import com.avos.avoscloud.AVInstallation;
import com.avos.avoscloud.AVOSCloud;
import com.avos.avoscloud.PushService;
import com.avos.avoscloud.im.v2.AVIMClient;
import com.avos.avoscloud.im.v2.AVIMConversation;
import com.avos.avoscloud.im.v2.AVIMMessage;
import com.avos.avoscloud.im.v2.AVIMMessageHandler;
import com.avos.avoscloud.im.v2.AVIMMessageManager;
import com.avos.avoscloud.im.v2.messages.AVIMTextMessage;

import pw.hais.app.AppApplication;
import pw.hais.main.main_app.activity.PushServiceActivity;
import pw.hais.main.main_app.model.UserModel;
import pw.hais.utils.L;

/**
 * Created by hais1992 on 2015/12/13.
 */
public class HaisApplication extends AppApplication {
    public UserModel user;
    public static HaisApplication app;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;

        AVOSCloud.initialize(this, "vKolPhgYqUDLhm5kK1a921XL", "vM7oErm4gv75RVbCsmr9bAtw");
        //启动统计
        AVAnalytics.enableCrashReport(this, true);
        //启动推送，并指定打开的Activity
        PushService.setDefaultPushCallback(this, PushServiceActivity.class);

    }

    @Override
    public void onErrorListener(String log) {

    }

}
